Skip to content

Add missing pthread.h in rtpp_proc_async - #172

Closed
Ansuel wants to merge 1 commit into
sippy:masterfrom
Ansuel:fix-pthread
Closed

Add missing pthread.h in rtpp_proc_async#172
Ansuel wants to merge 1 commit into
sippy:masterfrom
Ansuel:fix-pthread

Conversation

@Ansuel

@Ansuel Ansuel commented Nov 20, 2025

Copy link
Copy Markdown
Contributor

Fix compilation error for missing pthread_t type name.

rtpp_proc_async.h:44:34: error: unknown type name 'pthread_t'
44 | void rtpp_proc_async_setprocname(pthread_t thread_id, const char *pname);
| ^~~~~~~~~

Fix compilation error for missing pthread_t type name.

rtpp_proc_async.h:44:34: error: unknown type name 'pthread_t'
   44 | void rtpp_proc_async_setprocname(pthread_t thread_id, const char *pname);
      |                                  ^~~~~~~~~

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
@sobomax

sobomax commented Jan 19, 2026

Copy link
Copy Markdown
Member

@Ansuel I'd prefer not to include .h from another .h since it pollutes name space. As such, could you please let me know which .c file specifically are you having issue with compiling? The error message that you included only lists .h.

@Ansuel

Ansuel commented Jan 19, 2026

Copy link
Copy Markdown
Contributor Author

@sobomax well the problem is really in

void rtpp_proc_async_setprocname(pthread_t thread_id, const char *pname);

for the unknown pthread_t

@sobomax

sobomax commented Jan 28, 2026

Copy link
Copy Markdown
Member

@Ansuel I've moved rtpp_proc_async_setprocname() into a separate file, so it can only be included into files that use it. This should eliminate the need to have pthread_t to be defined in many places. Please check and let me know if something is till not right. Thanks!

@Ansuel

Ansuel commented Jan 28, 2026

Copy link
Copy Markdown
Contributor Author

Ok will sync with this.

@Ansuel

Ansuel commented Feb 13, 2026

Copy link
Copy Markdown
Contributor Author

Ok compiles correctly now. Thanks for handling this.

@Ansuel Ansuel closed this Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants